home *** CD-ROM | disk | FTP | other *** search
/ Workbench Add-On / Workbench Add-On - Volume 1.iso / BBS-Archive / Dev / gcc263-src.lha / gcc-2.6.3 / config / m88k / dguxbcs.h < prev    next >
C/C++ Source or Header  |  1994-08-12  |  3KB  |  73 lines

  1. /* Definitions of target machine for GNU compiler.
  2.    Motorola m88100 running DG/UX.
  3.    Copyright (C) 1988, 1989, 1990, 1991 Free Software Foundation, Inc.
  4.    Contributed by Michael Tiemann (tiemann@mcc.com)
  5.    Enhanced by Michael Meissner (meissner@osf.org)
  6.    Version 2 port by Tom Wood (twood@pets.sps.mot.com)
  7.    Currently maintained by (gcc@dg-rtp.dg.com)
  8.  
  9. This file is part of GNU CC.
  10.  
  11. GNU CC is free software; you can redistribute it and/or modify
  12. it under the terms of the GNU General Public License as published by
  13. the Free Software Foundation; either version 2, or (at your option)
  14. any later version.
  15.  
  16. GNU CC is distributed in the hope that it will be useful,
  17. but WITHOUT ANY WARRANTY; without even the implied warranty of
  18. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  19. GNU General Public License for more details.
  20.  
  21. You should have received a copy of the GNU General Public License
  22. along with GNU CC; see the file COPYING.  If not, write to
  23. the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
  24.  
  25. #include "m88k/dgux.h"
  26.  
  27. /* dgux.h builds an elf gcc which compiles elf objects by default.
  28.    dguxbcs.h builds a bcs gcc which compiles bcs objects by default.
  29.    The default can be overridden in either case with -msvr3 and -msvr4 */
  30.  
  31. /* Default switches */
  32. #undef    TARGET_DEFAULT
  33. #define TARGET_DEFAULT    (MASK_CHECK_ZERO_DIV     | \
  34.              MASK_OCS_DEBUG_INFO     | \
  35.              MASK_OCS_FRAME_POSITION | \
  36.              MASK_SVR3)
  37.  
  38. /* Assembler support (-V, silicon filter, legends for mxdb).  */
  39. #undef    ASM_SPEC
  40. #define ASM_SPEC "\
  41. %{V} %{v:%{!V:-V}} %{pipe:%{!.s: - }\
  42. %{msvr4:%{!m88110:-KV3 }%{m88110:-KV04.00 }}}\
  43. %{!mlegend:%{mstandard:-Wc,off}}\
  44. %{mlegend:-Wc,-fix-bb,-h\"gcc-" VERSION_INFO2 "\",-s\"%i\"\
  45. %{traditional:,-lc}%{!traditional:,-lansi-c}\
  46. %{mstandard:,-keep-std}\
  47. %{mkeep-coff:,-keep-coff}\
  48. %{mexternal-legend:,-external}\
  49. %{mocs-frame-position:,-ocs}}"
  50.  
  51. /* If -m88100 is in effect, add -Dm88100; similarly for -m88110.
  52.    Here, the CPU_DEFAULT is assumed to be -m88000.  If not -ansi,
  53.    -traditional, or restricting include files to one specific source
  54.    target, specify full DG/UX features.  */
  55. #undef    CPP_SPEC
  56. #define    CPP_SPEC "%{!m88000:%{!m88100:%{m88110:-D__m88110__}}} \
  57.           %{!m88000:%{!m88110:%{m88100:-D__m88100__}}} \
  58.           %{!ansi:%{!traditional:-D__OPEN_NAMESPACE__}} \
  59.           %{!msvr4:-D_M88KBCS_TARGET} %{msvr4:-D_DGUX_TARGET}"
  60.  
  61. /* Linker and library spec's.
  62.    -msvr3 is the default if -msvr4 is not specified. */
  63. #undef    LIB_SPEC
  64. #define LIB_SPEC "%{msvr4:%{!shared:-lstaticdgc}} %{!shared:%{!symbolic:-lc}} crtend.o%s"
  65. #undef    STARTFILE_SPEC
  66. #define STARTFILE_SPEC "%{!shared:%{!symbolic:%{pg:gcrt0.o%s} \
  67.              %{!pg:%{p:/lib/mcrt0.o}%{!p:/lib/crt0.o}} \
  68.              %{!msvr4:m88kdgux.ld%s bcscrtbegin.o%s} \
  69.              %{msvr4:crtbegin.o%s} \
  70.              %{svr4:%{ansi:/lib/values-Xc.o} \
  71.               %{!ansi:%{traditional:/lib/values-Xt.o} \
  72.                %{!traditional:/usr/lib/values-Xa.o}}}}}"
  73.